import http from '@/utils/axios.js'

// 获取文章分页数据
export const getArticlePageListAPI = (params) => http.post("/admin/article/list", params)

// 删除文章
export const deleteArticleAPI = (id) => http.post("/admin/article/delete", id)


// 发布文章
export const publishArticleAPI = (data) => http.post("/admin/article/publish", data)


// 获取文章详情
export const getArticleDetailAPI = (id) => http.post("/admin/article/detail", { id })

// 更新文章
export const updateArticleAPI = (data) => http.post("/admin/article/update", data)

// 更新文章置顶状态
export const updateArticleIsTopAPI = (data) => http.post("/admin/article/isTop/update", data)








